package com.mo.scopeprivilege.service.impl;

import com.mo.scopeprivilege.manager.impl.UserManagerImpl;
import com.mo.scopeprivilege.model.user.User;
import com.mo.scopeprivilege.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserManagerImpl userManager;

    @Override
    public List<User> findAll(User user) {
        List<User> userList = null;
        userList = userManager.selectAll(user);
        return userList;
    }
}
